﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using JobSiteStarterKit.DAL;
namespace JobSiteStarterKit.BOL
{
    /// <summary>
    /// Summary description for FunctionalArea
    /// </summary>
    public class FunctionalArea
    {
        public FunctionalArea()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public static DataSet GetFunctionalArea(int CategoryID)
        {
            using (DBAccess db = new DBAccess())
            {
                db.CommandText = "JobsDB_SelectFunctionalAreaByIndustry";
                db.AddParameter("@CategoryID", CategoryID);
                return db.ExecuteDataSet();
            }
        }

        public static DataSet GetAllFunctionalArea()
        {
            using (DBAccess db = new DBAccess())
            {
                db.CommandText = "Select_All_FunctionalArea";
                return db.ExecuteDataSet();
            }
        }
    }
}
